package nsq_mall

import (
	// "bp/cache"
	"bp/conf"
	"bp/db"
	"bp/internal/service/entity"
	"go.uber.org/zap"
)

const (
	appID string = "mall"
)

type NsqMallComServiceImp struct {
	dao       *db.PgDao
	slog      *zap.SugaredLogger
	vars      *conf.VarsSection
	entityHub *entity.EntityHub
}

// New initialization
func New(
	pgdao *db.PgDao,
	slog *zap.SugaredLogger,
	vars *conf.VarsSection,
	entityHub *entity.EntityHub,
) (s *NsqMallComServiceImp) {
	s = &NsqMallComServiceImp{
		dao:       pgdao,
		slog:      slog.With("module", "NsqMallComService"),
		vars:      vars,
		entityHub: entityHub,
	}
	return
}
